<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.thymeleaf.org"
      layout:decorator="layout/layout">
    <title layout:fragment="title">分销商账户管理</title>
<body>
<div class="main-content" layout:fragment="content">
    <div class="breadcrumbs" id="breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="/admin/">系统管理</a>
            </li>
            <li class="active">添加资源</li>
        </ul>
    </div>
    <!-- .page-content -->
    <div class="page-content">
        <form method="post" th:action="@{/admin/resource/modify}" id="add_distributor_form"  class="form-horizontal">
            <div class="row">
                <h3 class="lighter block green">资源信息：</h3>
                <input style="display: none" name="platformId" th:value="${platform.id}"/>
                <hr/>
                <div class="col-xs-10 col-xs-offset-1">
                    <table class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample-table-2_info">
                        <tbody role="alert" aria-live="polite" aria-relevant="all">
                            <tr class="odd">
                                <td width="20%" style="text-align: right">
                                    <span class="red">*</span>资源名称：
                                </td>
                                <td width="30%" class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <input type="text" id="resourceName" name="resourceName"  class="width-100"/>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="right" data-content="分销商用户名，尽量不使用中文" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                                <td width="20%" style="text-align: right">
                                    <span class="red">*</span>资源路径：
                                </td>
                                <td width="30%" class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <input type="text" id="urlSuffix" name="urlSuffix"  class="width-100"/>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="left" data-content="分销商真实名称，可用中文，识别分销商" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                            </tr>
                            <tr class="odd">
                                <td width="20%" style="text-align: right">
                                    资源描述：
                                </td>
                                <td width="30%"  class="">
                                    <div class="col-xs-12">
                                        <div class="col-xs-10 col-sm-10">
                                            <textarea id="description" name="description"  class="width-90"></textarea>
                                        </div>
                                        <!--<span class="help-button" data-rel="popover" data-trigger="hover" data-placement="right" data-content="备注信息" title="" data-original-title="">?</span>-->
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="modal-footer center">
                <a class="btn btn-success btn-sm" id="add_btn">
                    <i class="icon-save"></i>
                    添加
                </a>

                <a class="btn btn-grey btn-sm" id="back_btn">
                    <i class="icon-backward"></i>
                    返回
                </a>
            </div>
        </form>
    </div>
</div>
<script layout:fragment="script" th:src="@{/assets/js/resource/add.js}"></script>
</body>
</html>